package com.java.polymorphic;

/**
 * @author Lenl
 * @create 2021-05-30 0:40
 *
 * 多态性学习
 */
public class Person {
    String name;
    int age;
    public void eat(){
        System.out.println("人：吃饭");
    }
    public void walk(){
        System.out.println("人：走路");
    }
}
